/*
 * 
 * Libman
 * 
 * Daniel Kaufmann, Martin Lang, Simon Moosbrugger,
 * Stefan Mayer, Stephan Halbeisen
 * 
 */
package model;

/**
 * The Class Alias.
 */
public class Alias implements java.io.Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;
	
	/** The id. */
	private Integer id;
	
	/** The person data. */
	private PersonData personData;
	
	/** The alias name. */
	private String aliasName;

	/**
	 * Instantiates a new alias.
	 */
	public Alias() {
	}

	/**
	 * Instantiates a new alias.
	 * 
	 * @param personData
	 *            the person data
	 * @param aliasName
	 *            the alias name
	 */
	public Alias(PersonData personData, String aliasName) {
		this.setPersonData(personData);
		this.setAliasName(aliasName);
	}

	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * Sets the id.
	 * 
	 * @param id
	 *            the new id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * Gets the alias name.
	 * 
	 * @return the alias name
	 */
	public String getAliasName() {
		return aliasName;
	}

	/**
	 * Sets the alias name.
	 * 
	 * @param aliasName
	 *            the new alias name
	 */
	public void setAliasName(String aliasName) {
		this.aliasName = aliasName;
	}

	/**
	 * Gets the person data.
	 * 
	 * @return the person data
	 */
	public PersonData getPersonData() {
		return personData;
	}

	/**
	 * Sets the person data.
	 * 
	 * @param personData
	 *            the new person data
	 */
	public void setPersonData(PersonData personData) {
		this.personData = personData;
	}

}
